package cn.itcast.mapper;

import cn.itcast.domain.Client;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 这个表是客户表接口
 */
public interface ClientMapper {
    public List<Client> findNow();

    public List<Client> findHis();

    public void add(Client client);

    /*public int findCid(Client client);*/

    public void addClientAndRoom(@Param("cid") int cid,@Param("rid") int rid, @Param("aid") int aid );
    /**
     *
     * 点击图片退房回显数据
     * @param clientId
     * 点击图片回传id
     * @return
     * 将回显的数据返回
     */
    Client findClient(Integer clientId);
    /**
     * 客户退房
     * @param client
     * 接收findClient方法的返回值来删除客户对应的房间信息
     */
    void deleteClient(Client client);

    public int findCid(Client client);

    Date findclientdate(@Param("roomNumbre") int roomNumber);

    public Client findByRoomNum(String roomNum);

    public void updateFlagById(int cid);
}
